package com.zzw.testdemo01.registry;

import com.zzw.testdemo01.IdUtils;
import com.zzw.testdemo01.item.ItemOne;
import com.zzw.testdemo01.item.OriginApple;
import net.minecraft.item.BlockItem;
import net.minecraft.item.Item;
import net.minecraft.item.ItemGroup;
import net.minecraftforge.fml.RegistryObject;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;

import static com.zzw.testdemo01.registry.BlockRegistry.BLOCKONE;

public class ItemRegistry {
    public static final DeferredRegister<Item>  ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, IdUtils.MOD_ID);



    public static final RegistryObject<Item>  ItemOne = ITEMS.register("item1", () -> new BlockItem(BLOCKONE.get(), new Item.Properties().tab(ModGroup.ZZW_GROUP)));

    public static final RegistryObject<Item>  ItemTwe = ITEMS.register("Sword1", () -> new ItemOne());

    public static final RegistryObject<Item>  villagerStick = ITEMS.register("VillagerStick", () -> new ItemOne());


    public static final RegistryObject<Item>  originApple = ITEMS.register("OriginApple", () -> new OriginApple());


    public static void main(String[] args) {
//        Item item = ItemOne.get();

    }
}
